package com.stylefeng.guns.modular.platform.service.impl;

import com.stylefeng.guns.modular.platform.dao.OrderInfoMapper;
import com.stylefeng.guns.modular.platform.model.OrderInfo;
import com.stylefeng.guns.modular.platform.service.IOrderInfoService;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单信息 服务实现类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-13
 */
@Service
public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo> implements IOrderInfoService {
	@Resource
	private OrderInfoMapper orderInfoMapper;

	@Override
	public List<OrderInfo> getList(Page<OrderInfo> page, OrderInfo orderInfo) {
		return orderInfoMapper.getList(page, orderInfo);
	}

	@Override
	public Map<String, Object> getStatistics(OrderInfo orderInfo) {
		return orderInfoMapper.getStatistics(orderInfo);
	}

}
